44e7f696568593efcce0eea9baca15b68146801f,src/main/java/com/jvms/i18neditor/Editor.java,Editor,showAddTranslationDialog,#,359
Before Change
key = node.getKey();
}
while (newKey != null && newKey.isEmpty()) {
newKey = (String) JOptionPane.showInputDialog(this,
MessageBundle.get("dialogs.translation.add.text"),
MessageBundle.get("dialogs.translation.add.title"),
JOptionPane.QUESTION_MESSAGE, null, null, key);
if (newKey != null) {
newKey = newKey.trim();
if (!TranslationKeys.isValid(newKey)) {
After Change
key = node.getKey() + ".";
}
while (newKey != null && newKey.isEmpty()) {
newKey = Dialogs.showInputDialog(this,
MessageBundle.get("dialogs.translation.add.title"),
MessageBundle.get("dialogs.translation.add.text"),
key, JOptionPane.QUESTION_MESSAGE);
if (newKey != null) {
newKey = newKey.trim();
if (!TranslationKeys.isValid(newKey)) {